from django.contrib import admin
from models import Article, Sort


# Register your models here.


class ArticleAdmin(admin.ModelAdmin):
    list_display = ('title','cover_img','content','pub_time','last_edit_time','author','last_editor','sort')

class SortAdmin(admin.ModelAdmin):
    list_display = ('classifies',)


admin.site.register(Article,ArticleAdmin)
admin.site.register(Sort,SortAdmin)